from wormbane.ui.selection_dialog import selection_dialog

def command_look(game, ui):
    cell = game.hero.env
    things = [thing for thing in reversed(cell.inv) if thing is not game.hero]
    if not things:
        game.write('There is nothing here.')
        return
    selection = selection_dialog(ui.stdscr, things, prompt = 'Look')
    if not selection:
        game.write('Never mind.')
        return
    game.write('Not yet implemented.')
